


<h1>Listing Basecodes</h1>
<table>
  <tr>

    <td>
      <label for="Parent_Code">분류코드:</label>
      <% form_for :parentcode do |form|%>
      <%= form.collection_select( :parentcode, @mastercode, :Code, :Name, :prompt => "선택하세요" )%>

<%end%>

    </td>
  </tr>
</table>
<table>
  <tr>
    <th>Code</th>
    <th>Name</th>
    <th>Ename</th>
    <th>Alias</th>
    <th>Descriprion</th>
    <th>Inuse</th>
    <th>Codelevel</th>
    <th>Parentcode</th>
    <th>Type</th>
  </tr>

<% @basecode.each do |basecode| %>

  <tr>
    <td><%=h basecode.Code %></td>
    <td><%=h basecode.Name %></td>
    <td><%=h basecode.EName %></td>
    <td><%=h basecode.Alias %></td>
    <td><%=h basecode.Descriprion %></td>
    <td><%=h basecode.InUse %></td>
    <td><%=h basecode.CodeLevel %></td>
    <td><%=h basecode.ParentCode %></td>
    <td><%=h basecode.Type %></td>
    <td><%= link_to 'Show', :action => "show", :id => basecode %></td>
    <td><%= link_to 'Edit', edit_basecode_path(basecode) %></td>
    <td><%= link_to 'Destroy', basecode, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
<br />

<%= link_to 'New Basecode', new_basecode_path %>